const schoolServ = require('../service/schoolServ')
// 分发数据

const schoolCtrl = {
  // 获取学校列表
  getSchool: async (ctx)=>{
    let res = await schoolServ.getSchoolServ()
    ctx.body = {
      code: 0,
      msg:'success',
      data: res
    }
  },
  // 获取学校学院
  getDeplist: async (ctx)=>{
    let id = ctx.query.schoolId
    let res = await schoolServ.getDeplistServ(id)
    ctx.body = {
      code: 0,
      msg:'success',
      data: res
    }
  },
}

module.exports = schoolCtrl